package com.ztk.threadbasic.volitale;

public class Volitale02 {

    public static void main(String[] args) throws InterruptedException {
        Volitale01 volitale01 = new Volitale01();
        Thread thread = new Thread(volitale01);
        thread.start();

        Thread thread1 = new Thread(volitale01);
        thread1.start();
        Thread.sleep(5000);
        volitale01.setStop(true);
    }
}
